std::basic_istream::peek
From Cppreference
< cpp | io | basic istream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Input/output library | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| std::basic_istream | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| basic_istream& unget();
| ||
Makes the last extracted character available again. Effectively calls rdbuf()->sungetc(). If good() != true, setstate(failbit) is called and the function returns.
Contents |
[edit] Parameters
(none)
[edit] Return value
*this
[edit] Example
| This section is incomplete |
[edit] See also
| extracts characters (public member function) | |
| reads the next character without extracting it (public member function) | |
| puts character into input stream (public member function) | |